package manage.commons;

public class ExcelEntry {
	public String key;
	public String title;
	public int width = 3000;
	public String formatPattern;
	private int rowIndex;
	private int columnIndex;

	public ExcelEntry(String key, String title, int rowIndex, int columnIndex) {
		this.key = key;
		this.title = title;
		this.rowIndex = rowIndex;
		this.columnIndex = columnIndex;
	}

	public ExcelEntry(String key, String title, int width,
			String formatPattern, int rowIndex, int columnIndex) {
		this.key = key;
		this.title = title;
		this.width = width;
		this.formatPattern = formatPattern;
		this.rowIndex = rowIndex;
		this.columnIndex = columnIndex;
	}

	public ExcelEntry(String key, String title, int width, int rowIndex,
			int columnIndex) {
		super();
		this.key = key;
		this.title = title;
		this.width = width;
		this.rowIndex = rowIndex;
		this.columnIndex = columnIndex;
	}

	public ExcelEntry(String key, String title, String formatPattern) {
		this.key = key;
		this.title = title;
		this.formatPattern = formatPattern;
	}

	public ExcelEntry(String key, String title) {
		this.key = key;
		this.title = title;
	}

	public ExcelEntry(String key, String title, int width) {
		this.key = key;
		this.title = title;
		this.width = width;
	}

	public String getKey() {
		return key;
	}

	public void setKey(String key) {
		this.key = key;
	}

	public String getTitle() {
		return title;
	}

	public void setTitle(String title) {
		this.title = title;
	}

	public int getWidth() {
		return (width >= 65536) ? 65500 : width;
	}

	public void setWidth(int width) {
		this.width = width;
	}

	public String getFormatPattern() {
		return formatPattern;
	}

	public void setFormatPattern(String formatPattern) {
		this.formatPattern = formatPattern;
	}

	public int getRowIndex() {
		return rowIndex;
	}

	public void setRowIndex(int rowIndex) {
		this.rowIndex = rowIndex;
	}

	public int getColumnIndex() {
		return columnIndex;
	}

	public void setColumnIndex(int columnIndex) {
		this.columnIndex = columnIndex;
	}

}
